# coding:utf-8

from modeltranslation.translator import translator, TranslationOptions

from models import Slider, Review, Benefits, Direction, Box, FAbout, FLeftBox
class SliderTranslationOptions(TranslationOptions):
    fields = ( 'i_text', 'bg_text', 'main_text' )
    
class ReviewTranslationOptions(TranslationOptions):
    fields = ( 'title', 'subtitle', 'text' )
    
class BenefitsTranslationOptions(TranslationOptions):
    fields = ( 'title', 'teaser' )
    
class DirectionTranslationOptions(TranslationOptions):
    fields = ( 'title', 'teaser' )
    
class BoxTranslationOptions(TranslationOptions):
    fields = ( 'title', 'teaser' )

class FAboutTranslationOptions(TranslationOptions):
    fields = ( 'header', 'text' )
    
class FLeftBoxTranslationOptions(TranslationOptions):
    fields = ( 'address', 'phone', 'fax' )

#class BFooterTranslationOptions ( TranslationOptions ):
#    fields = ( 'text' )

translator.register(Slider, SliderTranslationOptions)
translator.register(Review, ReviewTranslationOptions)
translator.register(Benefits, BenefitsTranslationOptions)
translator.register(Direction, DirectionTranslationOptions)
translator.register(Box, BoxTranslationOptions)
translator.register(FAbout, FAboutTranslationOptions)
translator.register(FLeftBox, FLeftBoxTranslationOptions)
#translator.register(BFooter, BFooterTranslationOptions)
